package com.jsz.peini.service.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jsz.peini.bean.user.UserToken;
import com.jsz.peini.mapper.user.UserTokenMapper;

@Service
public class UserTokenService {
	
	@Resource
	private UserTokenMapper userTokenMapper;
	
	public int insert(UserToken userToken){
		int result = userTokenMapper.insert(userToken);
		return result;
	}
	
	public int update(UserToken userToken){
		int result = userTokenMapper.update(userToken);
		return result;
	}
	
	public int selectCount(String userId){
		int result = userTokenMapper.selectCount(userId);
		return result;
	}
	
	public int selectCheck(UserToken userToken){
		int result = userTokenMapper.selectCheck(userToken);
		return result;
	}

}
